<?php

include '../koneksi/Koneksi.php';
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$koneksi = new Koneksi();
$koneksi->koneksiDB();
$i = 0;
for ($i; $i < 5; $i++) {
    if ($i == 0) {
        mysql_query("drop table komentar");
        mysql_query("drop table testimony");
        mysql_query("drop table inspiratif");
        mysql_query("drop table gambar");
        echo 'tabel drop komentar,testimony,inspiratif,gambar</br>';
    } else if ($i == 1) {
        mysql_query("drop table barang");
        echo 'tabel drop barang</br>';
    } else if ($i == 2) {
        mysql_query("drop table kategori");
        mysql_query("drop table pengguna");
        echo 'tabel drop kategori,pengguna</br>';
    } else if ($i == 3) {
        mysql_query("drop table kabupaten");
        echo 'tabel drop kabupaten</br>';
    } else if ($i == 4) {
        mysql_query("drop table provinsi");
        echo 'tabel drop propinsi</br>';
    }
}
